package com.glory.gloryquickui.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by：YJ
 * Date：2020/3/11  13:51
 * Describe：
 */
public class DateBean implements Serializable {
    private int year;
    private int month;
    private List<DayBean> mDayBeans;

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public List<DayBean> getDayBeans() {
        if (mDayBeans == null) {
            return new ArrayList<>();
        }
        return mDayBeans;
    }

    public void setDayBeans(List<DayBean> dayBeans) {
        mDayBeans = dayBeans;
    }

    public static class DayBean implements Serializable {
        private int year;           //属于的年份
        private int month;           //属于的月份
        private int day ;           //日期，几号
        private String jr;
        private boolean isSelect;
        private boolean isMiddle;

        public DayBean(int year, int month, int day, String jr, boolean isSelect, boolean isMiddle) {
            this.year = year;
            this.month = month;
            this.day = day;
            this.jr = jr;
            this.isSelect = isSelect;
            this.isMiddle = isMiddle;
        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public String getJr() {
            return jr == null ? "" : jr;
        }

        public void setJr(String jr) {
            this.jr = jr;
        }

        public boolean isSelect() {
            return isSelect;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public boolean isMiddle() {
            return isMiddle;
        }

        public void setMiddle(boolean middle) {
            isMiddle = middle;
        }
    }
}
